﻿using System;
using System.Text;
using UnityEngine;

namespace Assets.backGround
{
    class ObjectsMovement : MonoBehaviour
    {
        public float xSpeed = 1f;

        void Start()
        {
        }

        void FixedUpdate()
        {
            this.transform.position += Vector3.right * xSpeed * Time.deltaTime;

            //// Otherwise, if the prop is facing right and it's beyond the right spawn position...
            //if (propInstance.transform.position.x > endPosX + 0.5f)
            //{
            //    // ... destroy the prop.
            //    Destroy(propInstance.gameObject);
            //    Destroy(propInstance);
            //}

        }
    }
}
